﻿using System;
using System.Collections.Generic;
using System.Text;
using FeedDotNet.Common;

namespace ConsoleApplication
{
    class DvdSpiderFeed : MovieFeed
    {
        private string type;
        public DvdSpiderFeed(string type, string url)
            : base (url)
        {
            this.type = type;
        }

        public override void PostProcess()
        {
            //do this before we post process in the base class
            //since these feeds are missing some information about resolution
            foreach (FeedItem item in _feed.Items)
            {
                item.Title += string.Concat(".", type);
            }

            base.PostProcess();
        }
    }

    class DvdSpiderFeed720p : DvdSpiderFeed
    {
        public DvdSpiderFeed720p(string url)
            : base("720p", url)
        {
        }
    }
    class DvdSpiderFeed1080p : DvdSpiderFeed
    {
        public DvdSpiderFeed1080p(string url)
            : base("1080p", url)
        {
        }
    }
}
